package io.github.cchenxi.crpc.core.api;

import java.util.List;

import io.github.cchenxi.crpc.core.meta.InstanceMeta;

/**
 * 路由
 * Date: 2024-03-17
 *
 * @author chenxi
 */
public interface Router<T> {
    List<T> route(List<T> providers);

    Router<InstanceMeta> Default = providers -> providers;
}
